package com.alibaba.jstorm.task.comm;

import java.io.Serializable;
import java.util.List;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;


public class TupleInfo implements Serializable {

    private static final long serialVersionUID = -3348670497595864118L;

    private Object messageId;
    private String stream;
    private List<Object> values;
    private long timestamp;


    public Object getMessageId() {
        return messageId;
    }


    public void setMessageId(Object messageId) {
        this.messageId = messageId;
    }


    public long getTimestamp() {
        return timestamp;
    }


    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }


    public String getStream() {
        return stream;
    }


    public void setStream(String stream) {
        this.stream = stream;
    }


    public List<Object> getValues() {
        return values;
    }


    public void setValues(List<Object> values) {
        this.values = values;
    }


    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }

}
